package br.com.lh.urabuilder.command
{
	import br.com.lh.urabuilder.event.ClosePopupEvent;
	
	import com.adobe.cairngorm.commands.ICommand;
	import com.adobe.cairngorm.control.CairngormEvent;
	
	import mx.managers.PopUpManager;

	/**
	 * Basic command for closing a popup.
	 * 
	 * 
	 * @author Luiz Henrique
	 * 
	 */
	public class ClosePopupCommand implements ICommand
	{
		public function ClosePopupCommand(){
		}

		public function execute(event:CairngormEvent):void{
			PopUpManager.removePopUp(ClosePopupEvent(event).windowToClose);
		}
		
	}
}